package loan.calc.constant.dict.rate;

import lombok.AllArgsConstructor;
import lombok.Getter;
import loan.calc.constant.dict.base.DictEnum;

/**
 * 利率调整方式
 *
 * @author Liusuo Dong
 * @date 2021/1/6
 */
@Getter
@AllArgsConstructor
@DictEnum(value = "RateUpdateType", description = "利率调整方式")
public enum RateUpdateTypeEnum {
    FIXED("不调整,固定不变"),
    NEXT_DAY_BEGIN("当日调整，次日生效"),
    NEXT_MONTH_BEGIN("当月末调整，次月初生效"),
    NEXT_QUARTER_BEGIN("当季末调整，次季初生效"),
    NEXT_YEAR_BEGIN("当年末调整，次年初生效"),
    ;

    private final String value;

    private final String description;

    RateUpdateTypeEnum(String description) {
        this.value = name();
        this.description = description;
    }

}
